{% extends "base.html" %}

{% block title %}Open a ticket{% endblock %}

{% block content %}


<table>
  <tr>
    <th>
      Created
    </th>
    <th>
      Author
    </th>
    <th>
      State
    </th>
    <th>
      Content
    </th>
    <th>
      Actions
    </th>
  </tr>
  {% for ticket in tickets%}
  <tr>
    <td>
      {{ticket.date}}
    </td>
    <td>
      {{ticket.author}}
    </td>
    <td>
      {{ticket.state}}
    </td>
    <td>
      {{ticket.content}}
    </td>
    <td>
      <a href='viewTicket?id={{ ticket.key }}'>show</a>
    </td>
  </tr>
  {% endfor %}
</table>

{% include "addTicket.html" %}



{% endblock %}
